package Text17;

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        while (n-- > 0) {
            int x = in.nextInt();
            long res = 1;
            for (int i = 2; i <= x / i; i++) {
                if (x % i == 0) {
                    int s = 0;
                    while (x % i == 0) {
                        s++;
                        x /= i;
                    }
                    res = res * (s + 1);
                }
            }
            if (x > 1) {
                res = res * 2;
            }
            System.out.println(res);
        }
    }
}
